<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="{{url_for('static',filename='js/jquery.min.js')}}"></script>
    <!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
    <script src="{{url_for('static',filename='js/tradeSystemAccountInfo.js')}}"></script>
    <script src="{{url_for('static',filename='js/bootstrap.min.js')}}"></script>
    <script src="{{url_for('static',filename='js/jquery.dataTables.min.js')}}"></script>
    <!--<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>-->
    <!--<link rel="stylesheet" href="{{url_for('static',filename='css/bootstrap.min.css')}}">-->
    <link rel="stylesheet" href="{{url_for('static',filename='css/jquery.dataTables.min.css')}}">
    <!--<link rel="stylesheet" href="https://cdn.datatables.net/1.10.18/css/jquery.dataTables.min.css">-->
    <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">-->
    <link rel="stylesheet" href="{{url_for('static',filename='css/bootstrap.min.css')}}">
    <title>持仓表格</title>

</head>
<body>

<div id="all_content" style="margin:auto; width:80%">





<!--今日买卖记录-->
<div id="buy_sell_info">

    <p style="font-size:22px;">回测记录</p>


    <div style="margin:auto">
    <div class="input-group col-xs-12">
    <select class="select_id_buy_sell form-control" style="margin:0px 20px 0px 0px;width:auto;">
    <option value="宽松条件">宽松条件</option>
    <option value="严格条件">严格条件</option>
    </select>
    <select class="select_date_buy_sell form-control" style="margin:0px 0px 0px 20px;width:auto;">
    <option value="符合条件买入">符合条件买入</option>
    <option value="不符合条件未买入">不符合条件未买入</option>
    <option value="当日卖出">当日卖出</option>
    </select>
    </div>
    <br/>
    <br/>
    </div>
    <div id="div_buy">
    <table id="example_buy" border="1" class="display" style="width:100%">
    </table>
    </div>
    <div id="div_fail_buy">
    <table id="example_fail_buy" border="1"  class="display" style="width:100%">
    </table>
    </div>
    <div id="div_sell">
    <table id="example_sell" border="1" class="display" style="width:100%">
    </table>
    </div>
    <br/>
    <br/>
</div>
<!--今日买卖记录-->
</div>

<script src="{{url_for('static',filename='js/getData_7_12.js')}}"></script>

<script type="text/javascript">


    jQuery(document).ready(function () {



          $(".select_id_buy_sell").change(function(){
                refreshBuySellInfoTemp();
          });
          $(".select_date_buy_sell").change(function(){
                refreshBuySellInfoTemp();
          });
          $(".select_time_buy_sell").change(function(){
                refreshBuySellInfoTemp();
          });



        $('#example_buy').DataTable( {
        "paging":   false,
        "ordering": false,
        "info":     false,
        data: [],
        columns: [
            { title: "账户名" },
            { title: "交易时间" },
            { title: "股票代码" },
            { title: "股票名" },
            { title: "成交股数" },
            { title: "买卖金额" },
            {title:"买入价格"},
            { title: "当天是否炸板" },
            { title: "备注信息",width:"500px",
　　　　　　　"createdCell": function (td, cellData, rowData, row, col) {
　　　　　　　　$(td).attr('title', cellData);//设置单元格title，鼠标移上去时悬浮框展示全部内容
　　　　　　　　}
            }]

        } );

        $('#example_fail_buy').DataTable( {

        "paging":   false,
        "ordering": false,
        "info":     false,
        data: [],
        columns: [
            { title: "账户名" },
            { title: "交易时间" },
            { title: "股票代码" },
            { title: "股票名" },
            {title:"不买原因"},
            { title: "备注信息",width:"500px",
　　　　　　　"createdCell": function (td, cellData, rowData, row, col) {
　　　　　　　　$(td).attr('title', cellData);//设置单元格title，鼠标移上去时悬浮框展示全部内容
　　　　　　　　}
            }]

        });

        $('#example_sell').DataTable({
        "paging":   false,
        "ordering": false,
        "info":     false,
        data: [],
        columns: [
            { title: "账户名" },
            { title: "交易时间" },
            { title: "股票代码" },
            { title: "股票名" },
            { title: "卖出股数" },
            { title: "卖出所得金额" },
            {title:"卖出价格"},
            {title:"买入价格"},
            {title:"收益(元)"},
            { title: "剩余股数" },

            { title: "备注信息",width:"500px",
　　　　　　　"createdCell": function (td, cellData, rowData, row, col) {
　　　　　　　　$(td).attr('title', cellData);//设置单元格title，鼠标移上去时悬浮框展示全部内容
　　　　　　　　}
            }]

        });



        changeDisplay('buy');




        refreshBuySellInfoTemp();





    });


</script>
</body>
</html></title>
</head>
<body>

</body>
</html>